package com.chang.bootplus.entity;

import com.chang.bootplus.base.database.EntityBase;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author chang
 * @since 2022-01-25
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "Product对象", description = "")
public class Product extends EntityBase {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商品编号")
    private String proNo;

    @ApiModelProperty("商品描述")
    private String message;

    private BigDecimal price;

    @ApiModelProperty("商品名称")
    private String proname;

    @ApiModelProperty(value = "商品卖一件所能得到的利润",example = "10.9",required = true)
    private BigDecimal profit;

    @ApiModelProperty("商品所属于的最低分类id")
    private Long categoryIdFour;

    @ApiModelProperty("销量")
    private Integer sellnum;

    @ApiModelProperty("商品的商家id")
    private Long userId;

    @ApiModelProperty("商品状态 0为可卖 1为不可卖")
    private Integer proStatus;

    @ApiModelProperty("商品添加时间")
    @JsonFormat(timezone = "GMT+8", shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime addTime;

    @ApiModelProperty("库存")
    private Integer stock;


}
